package com.arong.swing.db.entity;

import java.sql.Timestamp;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

@SuppressWarnings("serial")
public class CrThingRecord { 

	private String id;

	private String checkeventId;

	private String thingClass;

	private String name;

	private String code;

	private String thingDesc;

	private byte[] zp;

	private String owner;

	private String ownerSfhm;

	private String holder;

	private String holderSfhm;

	private String manufacturer;

	private Timestamp pcsj;

	private String sjly;

	private Timestamp createTime;

	public void setId(String id) {
		this.id = id;
	}
	
	public String getId() {
		return id;
	}

	public void setCheckeventId(String checkeventId) {
		this.checkeventId = checkeventId;
	}
	
	public String getCheckeventId() {
		return checkeventId;
	}

	public void setThingClass(String thingClass) {
		this.thingClass = thingClass;
	}
	
	public String getThingClass() {
		return thingClass;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String getName() {
		return name;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	public String getCode() {
		return code;
	}

	public void setThingDesc(String thingDesc) {
		this.thingDesc = thingDesc;
	}
	
	public String getThingDesc() {
		return thingDesc;
	}

	public byte[] getZp() {
		return zp;
	}

	public void setZp(byte[] zp) {
		this.zp = zp;
	}

	public void setOwner(String owner) {
		this.owner = owner;
	}
	
	public String getOwner() {
		return owner;
	}

	public void setOwnerSfhm(String ownerSfhm) {
		this.ownerSfhm = ownerSfhm;
	}
	
	public String getOwnerSfhm() {
		return ownerSfhm;
	}

	public void setHolder(String holder) {
		this.holder = holder;
	}
	
	public String getHolder() {
		return holder;
	}

	public void setHolderSfhm(String holderSfhm) {
		this.holderSfhm = holderSfhm;
	}
	
	public String getHolderSfhm() {
		return holderSfhm;
	}

	public void setManufacturer(String manufacturer) {
		this.manufacturer = manufacturer;
	}
	
	public String getManufacturer() {
		return manufacturer;
	}

	public void setPcsj(Timestamp pcsj) {
		this.pcsj = pcsj;
	}
	
	public Timestamp getPcsj() {
		return pcsj;
	}

	public void setSjly(String sjly) {
		this.sjly = sjly;
	}
	
	public String getSjly() {
		return sjly;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}
	
	public Timestamp getCreateTime() {
		return createTime;
	}

	public boolean equals(Object obj) {
		boolean equals = false;
		if (obj != null && obj instanceof CrThingRecord) {
			CrThingRecord another = (CrThingRecord) obj;
			equals = new EqualsBuilder()
					.append(id, another.getId())
					.isEquals();
		}
		return equals;
	}
	
	public int hashCode() {
		return new HashCodeBuilder(17, 37)
				.append(id)
				.toHashCode();
	}
	
	public String toString() {
		return new ToStringBuilder(this)
				.append("id", getId())
				.toString();
	}
}